package com.qingfeng.client.dao;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qingfeng.client.DO.OrderStoreDo;
import com.qingfeng.client.VO.OrderStoreCondition;
import com.qingfeng.client.util.Page;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.client.bean.OrderStore;

import java.util.List;
import java.util.Map;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface OrderStoreMapper extends BaseMapper<OrderStore> {

    int updateStatAndPayTimeByCode(@Param("updatedStat")Integer updatedStat,@Param("updatedPayTime")Integer updatedPayTime,@Param("code")String code);

    int canclePayByTradeId(@Param("tradeId")Long tradeId);

    IPage<OrderStoreDo> query(Page page, @Param("vo") OrderStoreCondition condition);

    List<Map<String,Object>> statNum(@Param("buyerId")Long buyerId);

    OrderStore selectByStoreIdAndTradeId(@Param("storeId")Integer storeId,@Param("tradeId")Long tradeId);

    List<OrderStore> selectByTradeId(@Param("tradeId")Long tradeId);



}
